package com.example.lt.constant;

/**
 * @Author 小涛Tao
 * @Date: 2024/07/28/10:53
 * version 1.0 注释：
 **/
public class RedisConstant {

    public static final Long EMAIL_CODE_TIME = 300L;

    public static final Long HISTORY_TIME = 432000L;

    // 用户搜索记录在redis中的保存时长
    public static final Long USER_SEARCH_HISTORY_TIME = 432000L;

    // 注册逻辑
    public static final String EMAIL_CODE = "email:code:";

    public static final String HISTORY_VIDEO = "history:video:";

    // 热门排行榜
    public static final String HOT_RANK = "hot:rank";

    // 热门视频
    public static final String HOT_VIDEO = "hot:video:";

    // 系统视频库,每个公开的都会存在这
    public static final String SYSTEM_STOCK = "system:stock:";

    // 系统分类库，用于查询分类下的视频随机获取
    public static final String SYSTEM_TYPE_STOCK = "system:type:stock:";

    // 发件箱 key前缀
    public static final String OUT_FOLLOW = "out:follow:feed:";

    // 收件箱 key前缀
    public static final String IN_FOLLOW = "in:follow:feed:";

    // 用户模型
    public static final String USER_MODEL = "user:model:";

    // 用户关注人
    public static final String USER_FOLLOW = "user:follow:";

    // 用户粉丝
    public static final String USER_FANS = "user:fans:";

    // 用于用户浏览记录  这里需要存video
    public static final String USER_HISTORY_VIDEO = "user:history:video:";

    // 用户搜索记录
    public static final String USER_SEARCH_HISTORY = "user:search:history:";

    // 发布视频限流
    public static final String VIDEO_LIMIT = "video:limit";

}
